home *** CD-ROM | disk | FTP | other *** search
-
-
- Message("Information","LOGGER.WBT is an example of how to write a logging file with WinBatch. Inspect the file for more information.")
- exit
-
-
- LogFile="C:\TEMP\MYLOG.INI"
-
- User=AskLine("LOG","Enter User Name","Fred")
- TimeOn=DateTime()
- Program=AskLine("LOG","Enter desired Program","NOTEPAD.EXE")
- RunWait(Program,"")
- TimeOff=DateTime()
-
- LogLine=strcat(User,"|",Program,"|",TimeOn,"|",TimeOff)
-
- Counting=IniReadPvt("LOG","Counter",0,LogFile)
- Counting=Counting+1
- IniWritePvt("LOG","Counter",Counting,LogFile)
- IniWritePvt("LOG",Counting,LogLine,LogFile)
-
-
-